var fs = require("fs");

exports.getMenu = function(locale) {
	var menu;
	if (locale)
		menu = fs.readFileSync("./public/menu-general-" + locale + ".json", "utf-8");
	else
		menu = fs.readFileSync("./public/menu-general.json", "utf-8");
	return JSON.parse(menu);
}

exports.getTestingMenu = function(locale) {
	var menu;
	if (locale)
		menu = fs.readFileSync("./public/menu-testing-system-" + locale + ".json", "utf-8");
	else
		menu = fs.readFileSync("./public/menu-testing-system.json", "utf-8");
	return JSON.parse(menu);
}